<div class="bs-example">
<form role="form" name="form1" method="post">
  <div class="form-group">
  	<p>Login</p>
    <label for="exampleInputEmail1">Username</label>
    <input type="text" placeholder="Enter name"  class="form-control" ng-model="user.username" required>
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">Password</label>
    <input type="password" placeholder="Password" id="exampleInputPassword1" class="form-control" ng-model="user.password" required>
  </div>
  <button class="btn btn-default" type="submit" ng-click="login(user)" ng-disabled="form1.$invalid">Submit</button>
  <p>{{msgtxt}}</p>
</form>
</div>
